/*
* @author : TF-BJ-C064
* @creation : 2014-6-26 下午9:19:01
* @description : 
*
*/

package com.service;
import java.util.List;

import com.base.BaseService;
import com.base.PageBean;
import com.base.UserBean;
import com.bean.ParkManager;
import com.bean.ParkOrder;
import com.bean.Parkinfo;
import com.bean.PerformanceBean;
import com.bean.Userinfo;

public interface ParkOrderService extends BaseService{
	
	public Object get(Long id);
	public void deleteOrder(ParkOrder order);
	public void updateOrder(ParkOrder order);
	public ParkOrder findByOrId(Long id);
	public String delete(Long id, Integer flag) throws Exception;
	public String updateuserandrecord(Userinfo user, ParkOrder parkOrder);
	public List<ParkOrder> query(ParkOrder object, UserBean userBean,PageBean page) throws Exception;
	public List<ParkOrder> queryParkOrder(ParkOrder object, UserBean userBean,PageBean page);
	public ParkOrder findByuserinfoId(Long id);
	public List getAll(ParkOrder parkOrder);
	public List<ParkOrder> getPname(UserBean userBean);
	public String add(ParkManager parkManager);
	//绩效统计
    public List<ParkOrder> statistics(ParkOrder parkOrder,UserBean userBean,String datetime) ;
    public ParkOrder queryDaynum(ParkOrder object, UserBean userBean);
    public List<ParkOrder> getstatus();
    
	/**
	 * 停车场管理员查询本停车场的所有订单
	 * <p>Title: queryMyParkOrder</p>
	 * <p>Description: </p>
	 * @param object
	 * @return
	 * @throws Exception
	 */
	public List<ParkOrder> queryMyParkOrder(ParkOrder object, UserBean userBean,PageBean page) throws Exception;
	
	
	/**
	 * 绩效统计
	 * <p>Title: statisMyParkPerformance</p>
	 * <p>Description: </p>
	 * @param pm
	 * @param parkInfo
	 * @param dateTime
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public List<PerformanceBean> statisMyParkPerformance(List<Parkinfo> listPark, ParkManager pm, Parkinfo parkInfo, String dateTime, PageBean page) throws Exception;
	
	
	public List<ParkOrder> getOrderList(Long id)throws Exception;
	
	/**
	 * 收费员查询自己的订单
	 * <p>Title: queryMyOrder</p>
	 * <p>Description: </p>
	 * @param object
	 * @return
	 * @throws Exception
	 */
	public List<ParkOrder> queryMyOrder(ParkOrder object, UserBean userBean,PageBean page) throws Exception;
}
